import ReactDOM from "react-dom/client";
import App from "./App";
import "./styles.css";
import 'virtual:uno.css'

import {ConfigProvider} from "antd";
import zhCN from "antd/locale/zh_CN"
import {Route, HashRouter as Router, Routes} from "react-router-dom";
import Settings from "./pages/Settings.tsx";

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
    <Router>
        <ConfigProvider locale={zhCN}>
            <Routes>
                <Route path="/app" element={<App/>}/>
                <Route path="/*" element={<Settings/>}/>
            </Routes>
        </ConfigProvider>
    </Router>
);
